package com.rc.saas.tenant.service.discount;

import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.common.vo.TResponse;
import com.rc.saas.tenant.mapper.discount.TenantDiscountMemberMapper;
import com.rc.saas.tenant.model.discount.TenantDiscountMember;
import com.rc.saas.tenant.model.discount.TenantDiscountMemberExample;

import java.util.List;

/**
 * @author frog
 * @date 2019/11/25
 */
public interface TenantDiscountMemberService extends BaseService<Long, TenantDiscountMember, TenantDiscountMemberExample, TenantDiscountMemberMapper> {
    TResponse insertDiscountMember(String tenantCode, String memberType, Long discountPolicyId, String stringList);

    /**
     * 根据方案id查找指定会员
     * @param discountId
     * @return
     */
    List<TenantDiscountMember> selectMemberByDiscountId(Long discountId);

    /**
     * 批量删除
     * @param discountMemberIds
     */
    void deleteByBatch(List<Long> discountMemberIds);
}
